package com.ipartek.pruebas.capitulo12;

public class PuntoP9 {

	//atributos
	int x,y;

	//constructores
	public PuntoP9() {
		super();
		this.x=0;
		this.y=0;
	}

	
	public PuntoP9(int x, int y) {
		super();
		this.x = x;
		this.y = y;
	}
	
	
	
	//getter y setters
	
	

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}
	
	
	
	
	
	//metodos propios
	
	@Override
	public String toString (){
		return  "x= " + this.x + " y= " + this.y ;
	}
	
	
	
	
	
}